home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / GFX / Static / Makefile < prev   
Makefile  |  1995-09-04  |  1KB  |  63 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Rectangle    \
  4.             o.CLG    \
  5.             o.Plot    \
  6.             o.VDU    \
  7.             o.Wait    \
  8.             o.Write0    \
  9.             o.WriteN    \
  10.  
  11.  
  12. LibName        =    GFX
  13.  
  14. # Template makefile which makes normal 
  15. # .o files for use in the main static
  16. # linking DeskLib.
  17.  
  18. # The macro $(ObjectFiles) should be set at the 
  19. # start of this file to be a space-separated
  20. # list of object files.
  21. # This is done by 'Makatic'.
  22.  
  23. # The macro $(LibName) should also be set at the 
  24. # start of this file, to be the name of the 
  25. # DeskLib sublibrary.
  26. # This is done by 'Makatic'.
  27.  
  28. # Compiler and linker flags, These can be anything. 
  29. # All essential flags are included in the macros 
  30. # $(CC) and $(ASM)
  31. #
  32. CCFlags        =    -ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  33. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  34.  
  35. CC        =    cc -c $(CCFlags)
  36. ASM        =    objasm $(ASMFlags)
  37.  
  38.  
  39. # -------------------------------------------------------
  40. # Everything below here should probably not be changed...
  41. # -------------------------------------------------------
  42.  
  43. # Here's what we want to make...
  44. #
  45. All:        $(ObjectFiles)
  46.  
  47.  
  48. VPATH = @.^
  49.  
  50. .SUFFIXES:    .c .s .o
  51.  
  52. .c.o:
  53.     $(CC) $< -o $@
  54.     
  55. .s.o:
  56.     $(ASM) -from $< -to $@
  57.  
  58.  
  59.  
  60. # Dynamic dependencies:
  61. o.Rectangle:    ^.c.Rectangle
  62. o.Rectangle:    DeskLib:h.GFX
  63.